package cn.getech.data.metadata.mapper;

import cn.getech.data.metadata.entity.meta.CollectionTask;
import cn.getech.data.metadata.entity.meta.CollectionTaskExample;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
@Mapper
public interface CollectionTaskMapper extends BaseMapper<CollectionTask> {


    int deleteByBatch(@Param("ids")  List<Long> ids);

    int insertOrUpdateSelective(CollectionTask record);

    IPage<CollectionTask> selectListPage(Page<CollectionTask> page,  @Param("params") Map<String, Object> params);

    List<String> selectCategoryIdsList(@Param("taskId")Integer taskId,@Param("tenantId")Integer tenantId);
}